package com.zxj.friend.domain.question.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL) // 为空的字段不返回
@Schema(description = "问题列表元素数据类型")
public class QuestionVO {

    /** 问题ID */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "问题ID")
    private Long questionId;

    /** 问题标题 */
    @Schema(description = "问题标题")
    private String title;

    /** 问题难度 1:简单 2：中等 3：困难 */
    @Schema(description = "问题难度 1:简单 2：中等 3：困难")
    private Integer difficulty;
}
